//
//  ExpenseModel.swift
//  NewCard
//
//  Created by yihui on 2017/11/19.
//  Copyright © 2017年 yihui. All rights reserved.
//

import UIKit

class ExpenseModel: BaseModel {

    var id : Int = 0
    var bankName : String!
    var bankCard : Int = 0
    var useType : String!
    var money : Double = 0
    var note : String!
    var date : String!
    var startDate : String!
    var endDate : String!
    
    override func setValue(_ value: Any?, forKey key: String) {
        super.setValue(value, forKey: key)
    }
    
    override var description: String {
        let property = ["id","bankName","bankCard","useType","note","money","date"]
        let dict = dictionaryWithValues(forKeys: property)
        return "\(dict)"
    }
}
